package com.advertise.service;

import java.io.Serializable;
import java.util.List;

import com.advertise.dao.BaseDAO_IFace;
import com.advertise.model.SystemConfig;

public class BaseService_Impl<PO,ID extends Serializable> implements BaseService_IFace<PO, ID> {
	
	private BaseDAO_IFace<PO,Serializable> dao;

	public BaseDAO_IFace<PO, Serializable> getDao() {
		return dao;
	}

	public void setDao(BaseDAO_IFace<PO, Serializable> dao) {
		this.dao = dao;
	}

	@Override
	public List<PO> getAll() {
		// TODO Auto-generated method stub
		return dao.getAll();
	}

	@Override
	public boolean update(PO po) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean save(PO po) {
		// TODO Auto-generated method stub
		
	
		return dao.save(po);
	}

	@Override
	public boolean deletebyID(ID id) {
		// TODO Auto-generated method stub
		return dao.deletebyID(id);
	}

	@Override
	public boolean deleteByCollections(List<PO> collectionData) {
		// TODO Auto-generated method stub
		return dao.deleteByCollections(collectionData);
	}

	@Override
	public PO getbyID(ID id) {
		
		return dao.findByID(id);
		
	}

}
